package org.nViron.nvParams;

//~--- non-JDK imports --------------------------------------------------------

import org.nViron.nvParams.nvContextParamMgr.CONTEXTPARAM;

/**
 * Single term of a parameter binding rule
 * @author Roland Haring <p>
 * <script type="text/javascript" src="http://www.ohloh.net/p/376434/widgets/project_basic_stats.js"></script>
 */
public class nvParamTerm {
    private float        decay;
    private boolean      inverted;
    private CONTEXTPARAM param;
    private float        weight;

    public nvParamTerm(CONTEXTPARAM param, float weight, float decay, boolean inverted) {
        this.param    = param;
        this.weight   = weight;
        this.decay    = decay;
        this.inverted = inverted;
    }

    public float getDecay() {
        return decay;
    }

    public CONTEXTPARAM getParam() {
        return param;
    }

    public float getWeight() {
        return weight;
    }

    public boolean isInverted() {
        return inverted;
    }

    public void setDecay(float decay) {
        this.decay = decay;
    }

    public void setInverted(boolean inverted) {
        this.inverted = inverted;
    }

    public void setParam(CONTEXTPARAM param) {
        this.param = param;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }
}



